Load-dependent-libraries-with-their-real-path-to-avo
authorChristoph Goehre <chris@sigxcpu.org>
Mon, 16 Sep 2013 18:40:57 +0000 (20:40 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Mon, 24 Dec 2018 16:04:10 +0000 (16:04 +0000)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Load-dependent-libraries-with-their-real-path-to-avo.patch

xpcom/glue/standalone/nsXPCOMGlue.cpp

index 53a57611b88a1e4b36899d59f4285e73770948d9..265b993278489f2af8257879e9cccb8a4d3da513 100644 (file)
@@ -154,6 +154,9 @@ ReadDependentCB(pathstr_t aDependentLib)
   // We do this unconditionally because of data in bug 771745
   ReadAheadLib(aDependentLib);
 #endif
+  char lib[MAXPATHLEN];
+  if (realpath(aDependentLib, lib))
+      aDependentLib = lib;
   LibHandleType libHandle = GetLibHandle(aDependentLib);
   if (libHandle) {
     AppendDependentLib(libHandle);